<script setup>
import { onMounted } from 'vue';
import { showFailToast} from 'vant';
import router from '@/router';

onMounted(() => {
    showFailToast('3秒之后,自动返回上一个页面');
    const timer = setTimeout(() => {
        clearTimeout(timer);
        router.go(-1);
    }, 3000);
});
</script>

<template>
    <div class="removed">该功能被移除</div>
</template>

<style scoped lang="scss">
.removed {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30rem;
    background-color: rgb(221, 214, 134);
}
</style>
